package com.explorati.design_pattern.behavior.chainofresponsibility;

public class QAApprover extends Approver {

	@Override
	public void deploy(Course course) {
		if (course.getQA() != null) {
			System.out.println("Java设计模式精讲含有问答， 批准!");
			if (approver != null) {
				approver.deploy(course);
			}
		} else {
			System.out.println("Java设计模式精讲中不含有问答， 未通过!");
			return;
		}
	}

}
